<?php
$uid1 = $_POST['uid1'];//用户
$uid2 = $_POST['uid2'];//要查询的关注对象
include ("conn.php");
$sql = "SELECT * FROM attention WHERE uid1=".(int)$uid1." AND uid2=".(int)$uid2;
$result = $conn->query($sql);
if ($result->num_rows > 0) {
	exit('{"code":true}');
}
echo '{"code":false}';
?>